#ifndef YIGSCSYNTHBOOTMENU_H
#define YIGSCSYNTHBOOTMENU_H

#include <QWidget>
#include <QMovie>
#include <QPaintEvent>
#include <QPainter>
#include <QLabel>
#include <QApplication>
#include <QDesktopWidget>
#include <QThread>
#include <QTimer>

class YigBootMenuThread : public QThread
{
public:

    YigBootMenuThread();

    void start();
    void run();
    bool running;
    QMovie loadMovie;
    QTimer timer;
};

/**
*   YigSCSynthBootMenu
*   Pop up window that informs the user that the scsynth server is booting
*/
class YigSCSynthBootMenu : public QWidget
{
    Q_OBJECT
public:

    /**
    *   YigSCSynthBootMenu constructor
    *   @param QWidget* The parent, which should be 0 because this is a floating window
    */
    YigSCSynthBootMenu(QWidget *parent = 0);

    void close();

signals:

public slots:

private:

    YigBootMenuThread movieThread;
    QLabel menuText, movieLabel;
};

#endif // YIGSCSYNTHBOOTMENU_H
